package com.ccb.sc.auth;

import java.io.Serializable;

/**
 * @author ken
 * @version 1.0
 * @date 2020-09-14
 */
public class TokenModel implements Serializable {
    private Token token;

    public TokenModel(Token token) {
        this.token = token;
    }

    public Long getId() {
        return token.getMemberId();
    }

    public Serializable getAttribute(String key){
        return token.getAttribute(key);
    }

    public boolean exists(String key){
        return token.isExists(key);
    }
}
